//CommonJS需要nodeJs支持
var name = '小明'
var age = 22

function sum(num1, num2) {
    return num1 + num2
}

var flag = true
if (flag) {
    //console.log(sum(10,20))
}

module.exports = {
    flag,
    sum
}
